<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateXunDianJiLuTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('xun_dian_ji_lu', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('shop_id')->index()->comment('关联门店id');
            $table->unsignedInteger('uid')->index()->comment('关联用户id');
            $table->string("shop_name")->comment("门店名称");
            $table->string("shop_code")->comment("门店编号");
            $table->string("user_name")->comment("用户名称");
            $table->string("uuid")->comment("重复验证/是否提交验证");
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('xun_dian_ji_lu');
    }
}
